import "package:ct_pa_majordomo/config/theme_vars.dart";
import "package:flutter/cupertino.dart";
import "package:flutter/material.dart";

class EmptyData extends StatelessWidget {
  final String? text;

  const EmptyData({super.key, this.text});

  @override
  Widget build(BuildContext context) {
    print("高度: ${MediaQuery.of(context).size.height}");
    return Container(
      padding: EdgeInsets.only(top: 120),
      width: MediaQuery.of(context).size.width,
      decoration: BoxDecoration(
        color: ThemeVars.colorBackground
      ),
      child: Column(
        children: [
          Icon(Icons.hourglass_empty_outlined, size:40 ,),
          SizedBox(height: 30,),
          Text(text ?? "暂无数据"),
        ],
      ),
    );
  }

}